Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
Public Member Functions | List of all members
Cable Class Reference

Cable is the generic cable class with two endpoints. More...

Inheritance diagram for Cable:
Link

Public Member Functions

Port getPort1 ()
 Returns the port on the first end of the cable. More...
 
Port getPort2 ()
 Returns the port on the second end of the cable. More...
 
Port getOtherPort (string, string)
 Returns the other port based on the specified port on one side of the cable. More...
 

Detailed Description

Cable is the generic cable class with two endpoints.

Member Function Documentation

◆ getOtherPort()

Port Cable::getOtherPort ( string  ,
string   
)

Returns the other port based on the specified port on one side of the cable.

Parameters
deviceName,nameof the device (not the IOS name)
portName,portNamecan be one of the following plus a port number where appropriate: Console, Aux, Ethernet, FastEthernet, GigabitEthernet, Serial, Wireless, Loopback, Vlan, Modem, Coaxial, Rs232, Async. Example: FastEthernet0/0
Returns
Port, value is the other port based on the specified port on one side of the cable.

◆ getPort1()

Port Cable::getPort1 ( )

Returns the port on the first end of the cable.

Returns
Port, the port on the first end of the cable.

◆ getPort2()

Port Cable::getPort2 ( )

Returns the port on the second end of the cable.

Returns
Port, the port on the second end of the cable.

The documentation for this class was generated from the following file: